import Layout from '@/layout'

const hidden = true
const affix = true
const noCache = true

export default [{
    path: '/declare',
    component: Layout,
    redirect: { name: 'Declare' },
    children: [{
            path: 'index',
            component: (resolve) => require(['@/views/declare/index'], resolve),
            name: 'Declare',
            meta: { title: '专项申报', icon: 'radio' },
        },
        // 新增的路由
        {
            path: 'declareAdd',
            component: (resolve) => require(['@/views/declare/add/index'], resolve),
            name: 'DeclareAdd',
            meta: { title: '新增', icon: 'radio', hidden: 'true' },
        },
        // 详情的路由
        {
            path: 'declareDetail',
            component: (resolve) => require(['@/views/declare/detail/index'], resolve),
            name: 'DeclareDetail',
            meta: { title: '详情', icon: 'radio', hidden: 'true' },
        },
        // 修改的路由
        {
            path: 'declareEdit',
            component: (resolve) => require(['@/views/declare/edit/index'], resolve),
            name: 'DeclareEdit',
            meta: { title: '修改', icon: 'radio', hidden: 'true' },
        }
    ],
}, ]